package com.example.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 设置宽高
 */
@Data
@HeadRowHeight(value = 35)
@ContentRowHeight(value = 35)
@ColumnWidth(value = 40)
public class Student implements Serializable {
    @ExcelProperty(value = "学生ID" , index = 0)
    private Long id;

    @ExcelProperty(value = "学生姓名" , index = 1)
    private String name;

    @ExcelProperty(value = "学生生日" , index = 2)
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date birthday;

    @ExcelProperty(value = "学生工资" , index = 3)
    private double salary;
}
